mediawiki.inspect: Use property assignments for clarity
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 26 Jun 2018 17:07:43 +0000 (18:07 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 26 Jun 2018 17:07:43 +0000 (18:07 +0100)
commit349cb8da0a5e681fb34fe21c4251e53ddfc7103d
tree28009228336bda13fbef9ab8407a91cfea9e115e
parente1990c6f0e1edc0379e2626c6e6ff5f0a2511233
mediawiki.inspect: Use property assignments for clarity

This changes the assignment of these methods from being declared
at once in an object literal, to assigning properties in separate
statements.

This is functionally a no-op and produces the exact same values,
but was factored out of the next commit to keep the diff cleaner
when fixing T197810 (which changes the host object from a plain
empty object, to a function object, which cannot be declared
as a literal).

Bug: T197810
Change-Id: I6ba1891acf8807cb9e01fa11a608e0c509e5f2bc
resources/src/mediawiki.base/mediawiki.base.js
resources/src/mediawiki.inspect.js